package com.huijun.coupon.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.huijun.common.utils.PageUtils;
import com.huijun.common.utils.Query;

import com.huijun.coupon.dao.ScouponSpuRelationDao;
import com.huijun.coupon.entity.ScouponSpuRelationEntity;
import com.huijun.coupon.service.ScouponSpuRelationService;


@Service("scouponSpuRelationService")
public class ScouponSpuRelationServiceImpl extends ServiceImpl<ScouponSpuRelationDao, ScouponSpuRelationEntity> implements ScouponSpuRelationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ScouponSpuRelationEntity> page = this.page(
                new Query<ScouponSpuRelationEntity>().getPage(params),
                new QueryWrapper<ScouponSpuRelationEntity>()
        );

        return new PageUtils(page);
    }

}